package spring.in.action.chapter_01;

import spring.in.action.chapter_01.Interface.ICoder;
import spring.in.action.chapter_01.Interface.ITask;

public class FullStackCoder implements ICoder
{
    private ITask fTask = null;

    public FullStackCoder(ITask pTask)
    {
        this.fTask = pTask;
    }

    @Override
    public void coding()
    {
//        System.out.println("coder:" + this.hashCode());
//        System.out.println("task:" + fTask.hashCode());
        fTask.execute();
    }

}
